package com.lxl.bt.bean;

import java.util.List;

/**
 * Created by HouJie on 4/11/21
 */

public class OrderListResult {
    public List<OrderListItem> content;
    public int totalElements;

    public static class OrderListItem {
        public String btOrderId;
        public String productId;
        public String productName;
        public String power;
        public String type;
        public String orderNo;
        public String payStatus;
        public String countStatus;
        public String payPrice;
        public String payType;
        public long countStartDate;
        public long countEndDate;
        public String createTime;
        public String updateTime;
        public String userId;
        public String couponId;
        public String coinName;
        public String userName;
        public String userDays;
        public String totalOut;
        public String yesOut;
        public String currentPrice;

        /**
         * 1:支付中2：支付完成：3：支付过期
         */

        public String getPayStatusText() {
            switch (payStatus) {
                case "1":
                    return "支付中";
                case "2":
                    return "支付完成";
                case "3":
                    return "支付过期";
            }
            return "";
        }
    }

}
